import request from "../utils/request";

//发布友链
export async function issue (data,param) {
  return await request({
    url: '/link',
    method: 'post',
    data:data,
    headers: {
      'Content-Type': 'application/json',
      'token': param.token 
    }
  })
}

//查询友链
export async function listLink () {
    return await request({
        url: '/link',
        method: 'get',
    })
}
